<!DOCTYPE html>
<html>
	<head>
<include file="./Public/Header/header.html,./Public/Header/jquery.html,./Public/Header/mobile.html" />
		<title>提示信息</title>
	</head>
<body>
<div id="dialogpage" data-role="dialog" data-theme="c">
	<include file="Public/mobile_header" header="提示框"/>
	<div data-role="content">
		<?php if(isset($message)) {?>
		<div><?php echo($message['content']); ?></div>
		<p>等待： <b id="wait"><?php echo($waitSecond); ?></b>S后，将自动跳转至<?php echo $message['next']?></p>
		<a  data-role="button" id="href" href="<?php echo($jumpUrl); ?>" data-rel="external" data-ajax="false" data-theme="e">点击跳转到<?php echo $message['next']?></a>
		<?php }else{?>
		<div><?php echo($error['content']); ?></div>
		<p>等待： <b id="wait"><?php echo($waitSecond); ?></b>S后，将自动跳转至<?php echo $error['back']?></p>
		<a data-rel="external" data-role="button" id="href" href="<?php echo($jumpUrl); ?>" data-rel="external" data-ajax="false" data-theme="e">点击返回到<?php echo $error['back']?></a>
		<?php }?>
	</div>
</div>
<script type="text/javascript">
(function(){
var wait = document.getElementById('wait'),href = document.getElementById('href').href;
var interval = setInterval(function(){
	var time = --wait.innerHTML;
	if(time <= 0) {
		location.href = href;
		clearInterval(interval);
	};
}, 1000);
})();
</script>
</body>
</html>
